package com.example.asus.recyclerview;

/**新建类Imagetext,作为RecyclerView适配器的适配类型*/
/**Imagetext类中只有两个字段，text表示文本，imageId表示对应图片的资源id。*/

public class Imagetext {
    private String text;
    private int imageId;

    public Imagetext(String text, int imageId){
        this.text=text;
        this.imageId=imageId;
    }

    public String getText(){
        return text;
    }

    public int getImageId(){
        return imageId;
    }
}
